<?php /* Smarty version 2.6.26, created on 2013-10-17 01:27:26
         compiled from news_edit.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'news_edit.tpl', 8, false),array('modifier', 'thumb', 'news_edit.tpl', 13, false),array('function', 'html_options', 'news_edit.tpl', 30, false),)), $this); ?>
<div class="box">
  <div class="box-content">
	  <form method="post" enctype="multipart/form-data">
	  <table class="table table-striped table-hover">
	  <tbody>
	  <tr>
	    <td width="140">Tiêu đề</td>
	    <td><input type="text" class="input-text" name="news_title" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['news']['news_title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
	  </tr>
	  <tr>
	    <td>Hình ảnh</td>
	    <td>
	    	<img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['news']['news_thumb'])) ? $this->_run_mod_handler('thumb', true, $_tmp, 'h75') : smarty_modifier_thumb($_tmp, 'h75')); ?>
" /> <br />
	      <input type="file" class="input-text" name="news_thumb" />
	    </td>
	  </tr>
	  <tr>
	    <td>Video youtube</td>
	    <td>
	      <input type="text" class="input-text" name="news_youtube_url" value="<?php echo $this->_tpl_vars['news']['news_youtube_url']; ?>
" />
	    </td>
	  </tr>
	  <tr>
	    <td>Mô tả ngắn</td>
	    <td><textarea name="news_desc" rows="5"><?php echo ((is_array($_tmp=$this->_tpl_vars['news']['news_desc'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</textarea></td>
	  </tr>
	  <tr>
	    <td>Danh mục</td>
	    <td>
	      <?php echo smarty_function_html_options(array('name' => 'news_cat_id','options' => $this->_tpl_vars['aCat'],'selected' => $this->_tpl_vars['news']['news_cat_id']), $this);?>

	    </td>
	  </tr>
	  <tr>
	    <th colspan="2">Nội dung</th>
	  </tr>
	  <tr>
	    <td colspan="2"><textarea class="ckeditor" name="news_content"><?php echo $this->_tpl_vars['news']['news_content']; ?>
</textarea></td>
	  </tr>
	  <tr>
	    <td>Hiển thị trang chính</td>
	    <td>
	      <input type="radio" value="1" name="news_ispinned" id="news_ispinned_on" <?php if ($this->_tpl_vars['news']['news_ispinned'] == 1): ?>checked="checked"<?php endif; ?> /> <label for="news_ispinned_on">Có</label> &nbsp; &nbsp; &nbsp;
	      <input type="radio" value="0" name="news_ispinned" id="news_ispinned_off" <?php if ($this->_tpl_vars['news']['news_ispinned'] == 0): ?>checked="checked"<?php endif; ?> /> <label for="news_ispinned_off">Không</label>
	    </td>
	  </tr>
			  <tr>
	    <td>Trạng thái</td>
	    <td>
	    	<input type="radio" value="1" name="news_publish" id="news_enabled_on" <?php if ($this->_tpl_vars['news']['news_published'] == 1): ?>checked="checked"<?php endif; ?> /> <label for="news_enabled_on">Xuất bản</label>  &nbsp; &nbsp; &nbsp;
	      <input type="radio" value="0" name="news_publish" id="news_enabled_off" <?php if ($this->_tpl_vars['news']['news_published'] == 0): ?>checked="checked"<?php endif; ?> /> <label for="news_enabled_off">Bản nháp</label>
	      
	    </td>
	  </tr>
	  <tr>
	    <td colspan="2" align="center"><input class="input-submit" type="submit" value="Gửi đi" /></td>
	  </tr>
	  </tbody>
	  </table>
	  </form>
  </div>
</div>